home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / umask.man < prev    next >
Encoding:
Text File  |  1989-01-13  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. UMASK                 C Library Procedures                  UMASK
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      umask - set file creation mode mask
  10.  
  11. SSYYNNOOPPSSIISS
  12.      oouummaasskk == uummaasskk((nnuummaasskk))
  13.      iinntt oouummaasskk,, nnuummaasskk;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _U_m_a_s_k sets the process's file mode creation mask to _n_u_m_a_s_k
  17.      and returns the previous value of the mask.  The low-order 9
  18.      bits of _n_u_m_a_s_k are used whenever a file is created, clearing
  19.      corresponding bits in the file mode (see _c_h_m_o_d(2)).  This
  20.      clearing allows each user to restrict the default access to
  21.      his files.
  22.  
  23.      The value is initially 022 (write access for owner only).
  24.      The mask is inherited by child processes.
  25.  
  26. RREETTUURRNN VVAALLUUEE
  27.      The previous value of the file mode mask is returned by the
  28.      call.
  29.  
  30. SSEEEE AALLSSOO
  31.      chmod(2), mknod(2), open(2)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 9, 1985                          1
  64.  
  65.  
  66.  
  67.